package groupware.board.dao;

import groupware.board.vo.NoticeVO;

import java.sql.SQLException;
import java.util.ArrayList;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

public class NoticeDAOImpl extends SqlMapClientDaoSupport implements NoticeDAO{

	@Override
	public int getNextNo() throws SQLException {
		int nextNo=(Integer)this.getSqlMapClient().queryForObject("getNextNo");
		return nextNo;
	}

	@Override
	public void insertContent(NoticeVO vo) throws SQLException {
		this.getSqlMapClient().insert("insertContent",vo);
	}

	@Override
	public String getDateByNo(int no) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void deleteContent(int no) throws SQLException {
		// TODO Auto-generated method stub
		
	}

	@Override
	public ArrayList<NoticeVO> getContentList(String pageNo)
			throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public NoticeVO getContent(int no) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void updateCount(int no) throws SQLException {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void updateContent(NoticeVO vo) throws SQLException {
		// TODO Auto-generated method stub
		
	}

	@Override
	public int totalContent() throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

}
